package com.jiancong.mapper;

import com.jiancong.domain.entity.Category;
import com.jiancong.domain.vo.CategoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 分类表(Category)表数据库访问层
 *
 * @author makejava
 * @since 2022-02-02 12:31:18
 */
@Mapper
public interface CategoryMapper{

    List<CategoryVo> getCategoryList();

    Category getById(Long categoryId);

    List<CategoryVo> listAllCategory();

    List<Category> CategoryList(@Param("category")Category category);

    void save(@Param("category")Category category);

    void removeById(@Param("category")Category category);

    List<Category> list();

    Category getCategoryById(@Param("id") Long id);

    void updateCategory(@Param("category") Category category);
}

